package me.yuxiaoyao.util.treeify;

import java.util.List;

/**
 * @author kerryzhang on 2020/10/30
 */

public class TreeItem implements ITreeChildren<TreeItem> {

    public TreeItem() {
        //必须有空构造方法
    }

    private List<TreeItem> children;

    @Override
    public List<TreeItem> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<TreeItem> children) {
        this.children = children;
    }


    private Integer id;
    private String name;
    private String url;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
